/**
 *
 */
package com.naiterui.ehp.bs.doctor.repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.PatientRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description 患者病历持久层

 * @version 2015年6月22日 下午1:39:23 by chenlin
 */
@Repository
public interface IPatientRecordRepository extends BaseJpaRepository<PatientRecord, Long>  {

    Page<PatientRecord> findByDoctorIdAndPatientIdAndType(Long doctorId, Long patientId, Integer type, Pageable pageable);

    List<PatientRecord> findByPatientIdAndDoctorIdAndType(Long patientId, Long doctorId, Integer type);

    List<PatientRecord> findByUuid(String uuid);

}
